package com.tsmti.system.entity;

import com.tsmti.core.common.entity.AbstractEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @Package：com.tsmti.system.entity
 * @Class：SystemPageCol
 * @Description： 系统列表字段配置
 * @Author：zcw
 * @Date：Created in 2018/5/29 11:06
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "pims_system_pagecol")
@DynamicUpdate
@DynamicInsert
public class SystemPageColumn extends AbstractEntity<Long> {
    /**编码*/
    private Long id;
    /**是否默认*/
    private String isDefault;
    /**页面编码*/
    private String pageId;
    /**别名*/
    private String align;
    /**列名*/
    private String colName;
    /**字段名称*/
    private String fieldName;
    /**排序字段*/
    private String orderKey;
    /** 关联字段 */
    private String linkValueColumn;
    /**关联字段主键*/
    private String linkKey;
    /**编码*/
    private String href;
    /**target*/
    private String target;
    /**transMethod*/
    private String transMethod;
    /**相关参数 */
    private String otherPara;
    /**排序值*/
    private Integer orders;
    /**列宽*/
    private String colWidth;
    /**显示名称*/
    private String colText;
    /**是否隐藏0否1是*/
    private String colHide;

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYSTEMPAGECOLUMN")
    @SequenceGenerator(name = "SEQ_SYSTEMPAGECOLUMN", sequenceName = "systempagecolumn_sequence", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }

    public String getAlign() {
        return align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getOrderKey() {
        return orderKey;
    }

    public void setOrderKey(String orderKey) {
        this.orderKey = orderKey;
    }

    public String getLinkValueColumn() {
        return linkValueColumn;
    }

    public void setLinkValueColumn(String linkValueColumn) {
        this.linkValueColumn = linkValueColumn;
    }

    public String getLinkKey() {
        return linkKey;
    }

    public void setLinkKey(String linkKey) {
        this.linkKey = linkKey;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getTransMethod() {
        return transMethod;
    }

    public void setTransMethod(String transMethod) {
        this.transMethod = transMethod;
    }

    public String getOtherPara() {
        return otherPara;
    }

    public void setOtherPara(String otherPara) {
        this.otherPara = otherPara;
    }

    public String getColWidth() {
        return colWidth;
    }

    public void setColWidth(String colWidth) {
        this.colWidth = colWidth;
    }

    public String getColText() {
        return colText;
    }

    public void setColText(String colText) {
        this.colText = colText;
    }

    public String getColHide() {
        return colHide;
    }

    public void setColHide(String colHide) {
        this.colHide = colHide;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }
}
